<template>
	<view class="my-search-contianer" @click="searchBoxHandler()">
		<view class="my-search-box">
			<!-- 使用uni-ui提供的图标组件 -->
			<uni-icons type="search" size="17"></uni-icons>
			<text class="search-text">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			searchBoxHandler(){
				console.log('ok')
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
.my-search-contianer{
	height: 100rpx;
	background-color: #c00000;
	display: flex;
	align-items: center;
	padding: 0 20rpx;
}
	.my-search-box{
		width: 100%;
		height: 72rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: #ffffff;
		border-radius: 36rpx;
		
}
	.search-text{
		font-size: 24rpx;
		margin-left: 10rpx;
}
</style>